package com.example.demo.singleton;

/**
 * @author void
 * @date 2022/2/17 16:44
 * @desc 饿汉式，线程安全
 */
public class Singleton3 {

    private static Singleton3 instance = new Singleton3();
    
    public Singleton3() {
    }
    
    public static Singleton3 getInstance(){
        return instance;
    }
}
